/*
* Header:		ProgramAttribute.h
* ClassName:	CProgramAttribute
* Author:		MaYuanping
* Date  :		2010.08.04
*/

#pragma once

const int MAX_NAME_LENGTH = 1024;

class CEntityArray;
class CProgramAttribute
{
public:
	CProgramAttribute(void);
	~CProgramAttribute(void);

public:
	void SetName(const char* pName) { strcmp(m_lpszName, pName); }
	void SetLength(double dLegth) { m_dLength = dLegth; }
	void SetWidth(double dWidth) { m_dWidth = dWidth; }
	void SetBaseLine(double pos[3], double lineVec[3]);

	const char* GetName(void) const { return m_lpszName; }
	double GetLength(void) const { return m_dLength; }
	double GetWidth(void) const { return m_dWidth; }
	void GetBaseLine(double pos[3], double lineVec[3]);

private:
	char		m_lpszName[MAX_NAME_LENGTH];
	double		m_dLength;
	double		m_dWidth;
	double		m_basePntPos[3];
	double		m_baseLineVect[3];
};
